package com.rui.mediator.model;

/**
 * @Description: 房主
 * @Author: ZhangRui
 * @Date: 2023/3/3 16:41
 * @Version: 1.0
 */
public class HouseOwner extends Person {

    public HouseOwner(String name, MediatorCompany mediatorCompany) {
        super(name, mediatorCompany);
    }

    // 联络方法
    public void connection(String message) {
        mediatorCompany.connection(this, message);
    }

    // 获取消息
    public void getMessage(String message) {
        System.out.println("房主" + name + "获取到的信息:" + message);
    }
}
